package com.matt.service.estimate.strategy;

import com.matt.domain.estimate.CourseExtendEstimate;
import com.matt.repository.estimate.CourseExtendEstimateRepository;
import com.matt.service.estimate.EstimateStrategy;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 课程评价
 */
public class CourseEstimateStrategy extends AbstractEstimateStrategy implements EstimateStrategy {

    private CourseEstimateStrategy() {
        registerEstimate();
    }

    @Autowired
    private CourseExtendEstimateRepository courseExtendEstimateRepository;

    @Override
    public void estimate(Object... params) {
        // 课程评价逻辑
//        courseExtendEstimateRepository.addCourseEstimate((String) params[0], (String) params[1], (String) params[2]
//                , (String) params[3], (String) params[4]);
    }
}
